﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhouYu.DreamTour.BLL.IService;
using ZhouYu.DreamTour.DAL.IRepository;
using ZhouYu.DreamTour.Model;

namespace ZhouYu.DreamTour.BLL.Service
{
    public class TeamService: ITeamService
    {
        private ITeamRepository _teamRepository;
        public TeamService(ITeamRepository teamRepository)
        {
            _teamRepository = teamRepository;
        }
        //团队简介
        public List<TeamInfo> TeamInfo() 
        {
            return _teamRepository.TeamInfo();
        }

        //团队简介
        public TeamInfo GetTeam(string name)
        {
            return _teamRepository.GetTeam(name);
        }
    }
}
